package com.mask.im.business.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 聊天列表展示VO
 * @author jian
 */
@Data
@ApiModel("聊天列表展示对象")
public class IMChatListVO {

    @ApiModelProperty("列表项ID")
    private Long id;

    @ApiModelProperty("当前用户ID")
    private Long userId;

    @ApiModelProperty("聊天类型：1=单聊，2=群聊，3=系统通知")
    private Integer chatType;

    @ApiModelProperty("目标ID（好友ID/群ID）")
    private Long targetId;

    @ApiModelProperty("展示名称")
    private String displayName;

    @ApiModelProperty("聊天头像URL")
    private String chatAvatar;

    @ApiModelProperty("最新消息内容")
    private String latestMessage;

    @ApiModelProperty("最新消息时间")
    private Date latestTime;

    @ApiModelProperty("未读消息数")
    private Integer unreadCount;

    @ApiModelProperty("最新消息类型")
    private Integer messageType;

    @ApiModelProperty("是否置顶：0=否，1=是")
    private Integer isTop;

    @ApiModelProperty("是否静音：0=否，1=是")
    private Integer isMuted;
    /**
     * 是否在线：0=不在线，1=在线
     */
    @ApiModelProperty("是否在线：0=否，1=是")
    private Integer isOnline;
}
